<?php

include_once(dirname(__FILE__) . "/../../configure/configure.php");		//--> global var
include_once(dirname(__FILE__) . "/../configure/admin.config.inc.php");	//--> admin global var

include_once(dirname(__FILE__) . "/../tools/smarty/libs/Smarty.class.php");					//--> out template
include_once(dirname(__FILE__) . "/../lib/impl/MenuImpl.php");

require_once(dirname(__FILE__) . "/../controlHeader.php");					//--> system control header
require_once(dirname(__FILE__) . "/../controlOperate.php");				//-->

$oMenuImpl	= new MenuImpl(DB_TAG_SYSTEM);	//--> Menu

$error_message = '';


$arrDataList = $oMenuImpl->getPageRows(DB_TAG_SYSTEM, '*', "menu", " ORDER BY orders", $page, DISPLAY_DATA_SIZE);

/*----- out html -----*/
$smarty = new Smarty();					//----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir  = CACHE_SYS_DIR;

$smarty->assign('error_message', $error_message);
$smarty->assign('backurl',$backurl);

$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);

$smarty->assign('selfFileName', $selfFileName);
$smarty->assign('arrOperateInfo', $arrOperateInfo);

$smarty->assign('arrMenuList', $arrDataList);
$smarty->assign('PAGE_BAR', $oMenuImpl->pagenav);

$smarty->display('listMenu.htm');
?>
